<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>article</title>
    <link rel="stylesheet" href="./css/public.css">
    <link rel="stylesheet" href="./css/article.css">
    <link rel="stylesheet" href="./node_modules/layui-src/dist/css/layui.css">
</head>
<body>
    <div class="addClassify">
        <div class="shade"></div>
        <div class="body">
            <div class="top">添加分类</div>
            <div class="wicket">
                <label>分类名</label>
                <input type="text" id="role_name" placeholder="至少输个正常点的"><br>
                <input type="submit" id="submit" value="添加">
                <input type="button" id="cancel" value="取消">
            </div>
        </div>
    </div>
    <div class="container">
        <div class="head">
            <input class="title" placeholder="标题"></input>
            <select class="select">
                <option selected>选择文章分类</option>
            </select>
        </div>
        <textarea id="suggCont"></textarea>
        <input type="button" value="发布" id="uplord">
    </div>
    <script src="./node_modules/axios/dist/axios.js"></script>
    <script>
        axios.get('https://ty.php800.cn/api/token.php',{
            headers:{
                TOKEN:localStorage.getItem('token'),
                SAT:'1234567'
            }
        }).then((res)=>{
            console.log(res)
            if(!res.data.verify){
                top.window.location.href='./login.html'
            }
        })
    </script>
    <script src="./node_modules/layui-src/dist/layui.js"></script>
    <script src="./js/article.js"></script>
</body>
</html>